package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by shenminjie on 2017/10/25.
 * mail:shenminjie@100bei.com
 */

public class ExchangeInfo implements Serializable, Parcelable {
    private String exchange;

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    public ExchangeInfo(String exchange) {
        this.exchange = exchange;
    }

    @Override
    public String toString() {
        return "ExchangeInfo{" +
                "exchange='" + exchange + '\'' +
                '}';
    }

    public ExchangeInfo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.exchange);
    }

    protected ExchangeInfo(Parcel in) {
        this.exchange = in.readString();
    }

    public static final Parcelable.Creator<ExchangeInfo> CREATOR = new Parcelable.Creator<ExchangeInfo>() {
        @Override
        public ExchangeInfo createFromParcel(Parcel source) {
            return new ExchangeInfo(source);
        }

        @Override
        public ExchangeInfo[] newArray(int size) {
            return new ExchangeInfo[size];
        }
    };
}
